package user;

import book.BookList;
import operator.Operator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -03 -26
 * Time: 20:38
 */
public abstract class User {
    protected String name;//姓名
    protected Operator[] operators;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();//重写

    public void choiceOperator(int choice, BookList bookList){
        operators[choice].process(bookList);
    }
}
